See Also

Ping Class  | Ping Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

remoteHost
Hostname or dot address of the host to ping.
TTL
The maximum amount of hops to take.
sequenceNumber
An identification number.
localHost
Hostname or dot address of the local host.
data
Additional data to send with the ping.
state
User state information.
See Also Languages PowerTCP SSL Sockets for .NET

BeginSend(String,Int32,Int32,String,Byte[],Object) Method

Dart.PowerTCP.SslSockets Namespace > Ping Class > BeginSend Method : BeginSend(String,Int32,Int32,String,Byte[],Object) Method

Asynchronously determine if a host is reachable, specifying a TTL, sequence number, and additional data to send.

[Visual Basic]
<DescriptionAttribute("Begin an asynchronous Ping with a remote host, local host, the data sent, and any object.")> Overloads Public Function BeginSend( _    ByVal remoteHost As String, _    ByVal TTL As Integer, _    ByVal sequenceNumber As Integer, _    ByVal localHost As String, _    ByVal data() As Byte, _    ByVal state As Object _ ) As IAsyncResult
[C#]
[DescriptionAttribute("Begin an asynchronous Ping with a remote host, local host, the data sent, and any object.")] public IAsyncResult BeginSend(    string remoteHost,    int TTL,    int sequenceNumber,    string localHost,    byte[] data,    object state );
[C++]
[DescriptionAttribute("Begin an asynchronous Ping with a remote host, local host, the data sent, and any object.")] public: IAsyncResult* BeginSend(    string* remoteHost,    int TTL,    int sequenceNumber,    string* localHost,    byte[]* data,    Object* state )
[C++/CLI]
[DescriptionAttribute("Begin an asynchronous Ping with a remote host, local host, the data sent, and any object.")] public: IAsyncResult^ BeginSend(    String^ remoteHost,    int TTL,    int sequenceNumber,    String^ localHost,    bytearray<data>^ data,    Object^ state )

Parameters

remoteHost
Hostname or dot address of the host to ping.
TTL
The maximum amount of hops to take.
sequenceNumber
An identification number.
localHost
Hostname or dot address of the local host.
data
Additional data to send with the ping.
state
User state information.

Return Type

An IAsyncResult that represents the asynchronous ping operation, which could still be pending.

Exceptions

ExceptionDescription
InvalidOperationExceptionBeginXXX method used without providing an EndXXX event handler.
SocketExceptionThe remote address is unknown, invalid, or unable to be resolved.

Remarks

This method pings the host specified by remoteHost with the settings specified by remoteHost, TTL, sequenceNumber, localHost, and data. Upon completion the EndSend event is raised. An EchoResult object is made accessible in the event, describing the ping operation. Check the properties of the EchoResult for data about the Ping operation. For example, ResponseTime returns the amount of time for the response to be received.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Ping Class  | Ping Members  | Overload List


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.